package com.ygqh.baby.service;

import java.util.Date;
import java.util.List;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgLogistics;

public interface YgLogisticsService {

	List<YgLogistics> find();

	int findCount();

	YgLogistics findById(Long id);

	List<YgLogistics> findByOrderId(String orderId);

	int save(YgLogistics ygLogistics);

	int update(YgLogistics ygLogistics);

	int saveOrUpdate(YgLogistics ygLogistics);

	ResultSet<YgLogistics> search(QueryInfo queryInfo, String q);

	int addLogisticsBatch(List<YgLogistics> logisticsList);

	/**
	 * 
	 * @Title: findLogistic
	 * @param userId
	 * @param startDate
	 * @param endDate
	 *            入参
	 * @return List<YgLogistics> 返回类型
	 * @author （guohao）
	 * @throws @date
	 *             2017年8月22日 下午5:39:05
	 * @version V1.0
	 */
	List<YgLogistics> findLogistics(Long userId, Date startDate, Date endDate);

	/**
	 * 获取外部商家的发货物流信息
	 * 
	 * @param orderId
	 * @param supplierId
	 * @return
	 */
	List<YgLogistics> findByOrderId(Long orderId, Long supplierId);

	List<YgLogistics> findByExpressCode(String expressCode);

	List<YgLogistics> findByExpressCode(String orderCode, String expressCode);

	Boolean isExist(String orderCode, String expressCode);

}
